<template>
   <div class="app-container homepage" style="width: 600px;">
      <div class="part progress">
        <el-row :gutter="20">
          <el-col :sm="12" :lg="24" style="padding-left: 20px">
            <p>
              <b>快捷入口</b>
            </p>
          </el-col>
        </el-row>
        <ul class="iconUl">
          <li :class="{'active':current>=1}" v-hasPermi="['system:wlxx:list']" >
          <p>
            <router-link :to="'/jhgl/wlxx'">
            <img v-if="current >= 1" src="~@/assets/img/indexnav/k-1.png" />
            <img v-else src="~@/assets/img/indexnav/k-1g.png" />
              <span style="width: 90px;float:left;">物料信息</span>
            </router-link>
          </p>
          </li>
          <li :class="{'active':current>=2}"  v-hasPermi="['system:kcxx:list']">
          <p>
            <router-link :to="'/jhgl/kcxx'">
            <img v-if="current >= 2" src="~@/assets/img/indexnav/k-7.png" />
            <img v-else src="~@/assets/img/indexnav/k-7g.png" />
             <span style="width: 90px;float:left;">库存信息</span>
            </router-link>
          </p>
          </li>
          <li :class="{'active':current>=4}" v-hasPermi="['jhgl:list']">
          <p>
            <router-link :to="'/jhgl/index'">
            <img v-if="current >= 4" src="~@/assets/img/indexnav/k-8.png" />
            <img v-else src="~@/assets/img/indexnav/k-8g.png" />
            <span style="width: 90px;float:left;">生产计划</span>
            </router-link>
            </p>
          </li>
          <li :class="{'active':current>=3}"  v-hasPermi="['system:dept:list']">
          <p>
            <router-link :to="'/system/dept'">
            <img v-if="current >= 3" src="~@/assets/img/indexnav/k-3.png" />
            <img v-else src="~@/assets/img/indexnav/k-3g.png" />
            <span style="width: 90px;float:left;">供应商信息</span>
            </router-link>
           </p>
          </li>
          <li :class="{'active':current>=4}" v-hasPermi="['system:user:list']">
          <p>
            <router-link :to="'/system/user'">
            <img v-if="current >= 4" src="~@/assets/img/indexnav/k-4.png" />
            <img v-else src="~@/assets/img/indexnav/k-4g.png" />
            <span style="width: 90px;float:left;">用户管理</span>
            </router-link>
            </p>
          </li>
          <li  :class="{'active':current>=5}" v-hasPermi="['ddgl:ck']"  >
          <p>
            <router-link :to="'/jhgl/ddgl'">
            <img v-if="current >= 5" src="~@/assets/img/indexnav/k-2.png" />
            <img v-else src="~@/assets/img/indexnav/k-2g.png" />
            <span style="width: 90px;float:left;">订单管理</span>
            </router-link>
          </p>
          </li>
          <li  :class="{'active':current>=5}" v-hasPermi="['ddgl:ch']"  >
          <p>
            <router-link :to="'/jhgl/ghsddgl'">
            <img v-if="current >= 5" src="~@/assets/img/indexnav/k-2.png" />
            <img v-else src="~@/assets/img/indexnav/k-2g.png" />
            <span style="width: 90px;float:left;">订单管理(供货商)</span>
            </router-link>
          </p>
          </li>
        </ul>
      </div>
    </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "1.0.0",
      path: "fafb",
      current: 5,//当前进度
    };
  },
  methods: {
    toPage(index,path) {
      if (index <= this.current) {
        this.path = path
      }
    },
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.homepage {
  height: calc((100vh - 110px));
  i {
    color: red;
  }
  .part {
    background-color: #fff;
    padding: 5px 10px;
    .iconProgress {
      width: 60%;
      text-align: center;
      margin: 0 auto;
    }
  }
  .progress {
    .iconUl {
      position: relative;
      display: flex;
      justify-content: space-between;
      //width: 60%;
      margin: 5px auto;
      margin-left: -35px;
      min-width: 500px;
      li {
        width: 18%;
        text-align: center;
        cursor: pointer;
        img {
          width: 50px;
          padding: 0 5px;
          background-color: #fff;
          position: relative;
          z-index: 9;
          margin-bottom: 8px;
          transition: 0.3s;
        }
      }
      li.active:hover {
        font-weight: 700;
        img {
          transform: scale(1.2);
          transition: 0.3s;
        }
      }
    }
    .iconUl::after {
      content: "";
      position: absolute;
      width: 80%;
      height: 1px;
      //border-bottom: 2px dashed #ddd; //虚线
      left: 10%;
      top: 20px;
      z-index: 1;
    }
  }
}
li {
  list-style-type: none;
}
// 之前css
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>
